<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html>
	<head>				
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title><bean:message key="AltaGrupo.titulo" /></title>		
	</head>
	
	<body>
		<html:errors/>
		<p align="center"><strong><font color="#993300"><bean:message key="AltaGrupo.titulo" /></font></strong></p>
		
		<html:form action="/altaGrupo" > 
			<table width="75%" border="0">		  
			  <tr> 
			    <td> <bean:message key="AltaGrupo.nombre" />* </td>
			    <td> <html:text property="nombre" maxlength="30" size="20" /> </td>
			  </tr>
			  <tr> 
			    <td> <bean:message key="AltaGrupo.descripcion" /> </td>
			    <td> <html:textarea property="descripcion" cols="50" rows="2" /> </td>
			  </tr>	
			  <tr> 
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			  </tr>	
			  <tr> 
			    <td> <bean:message key="AltaGrupo.infoHorario" /> </td>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			  </tr>	
			  <tr> 
			    <td><bean:message key="AltaGrupo.anio" /></td>
			    <td><html:text property="anio" maxlength="30" size="20" /></td>			  	
			    <td>&nbsp;</td>
			  </tr>
			  <tr> 
			    <td><bean:message key="AltaGrupo.turno" /></td>
			    <td colspan="2"> 
			    		<html:select property="turno"> 
				    		<html:option value=""></html:option> 
				      	 	<html:optionsCollection
												name="grupoForm"
												property="turnos"
												value="nombre"
												label="nombre" /> 
						 </html:select>			    		
			    </td>			  	
			    <td>&nbsp;</td>
			  </tr>	
			  <tr> 
			    <td>&nbsp;</td>
			    <td><bean:message key="AltaGrupo.horaInicio" /></td>
			    <td><bean:message key="AltaGrupo.horaFin" /></td>
			  </tr>			  	
			  <tr> 
			    <td><bean:message key="AltaGrupo.lunes" /></td>
			    <td><html:text property="horaInicioLunes" maxlength="30" size="10" /></td>
			    <td><html:text property="horaFinLunes" maxlength="30" size="10" /></td>
			  </tr>	
			  <tr> 
			    <td><bean:message key="AltaGrupo.martes" /></td>
			    <td><html:text property="horaInicioMartes" maxlength="30" size="10" /></td>
			    <td><html:text property="horaFinMartes" maxlength="30" size="10" /></td>
			  </tr>	
			 <tr> 
			    <td><bean:message key="AltaGrupo.miercoles" /></td>
			    <td><html:text property="horaInicioMiercoles" maxlength="30" size="10" /></td>
			    <td><html:text property="horaFinMiercoles" maxlength="30" size="10" /></td>
			  </tr>		
			  <tr> 
			    <td><bean:message key="AltaGrupo.jueves" /></td>
			    <td><html:text property="horaInicioJueves" maxlength="30" size="10" /></td>
			    <td><html:text property="horaFinJueves" maxlength="30" size="10" /></td>
			  </tr>	
			  <tr> 
			    <td><bean:message key="AltaGrupo.viernes" /></td>
			    <td><html:text property="horaInicioViernes" maxlength="30" size="10" /></td>
			    <td><html:text property="horaFinViernes" maxlength="30" size="10" /></td>
			  </tr>	
			  <tr> 
			    <td><bean:message key="AltaGrupo.sabado" /></td>
			    <td><html:text property="horaInicioSabado" maxlength="30" size="10" /></td>
			    <td><html:text property="horaFinSabado" maxlength="30" size="10" /></td>
			  </tr>
			  <tr> 
			    <td><bean:message key="AltaGrupo.domingo" /></td>
			    <td><html:text property="horaInicioDomingo" maxlength="30" size="10" /></td>
			    <td><html:text property="horaFinDomingo" maxlength="30" size="10" /></td>
			  </tr>	
			  <tr> 
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			  </tr>  
			  <tr> 
			    	<td> <bean:message key="AltaGrupo.centroEducativo" /> </td>
			    	<td colspan="2"> 
			    		<html:select property="idCentroEducativo"> 
				    		<html:option value=""></html:option> 
				      	 	<html:optionsCollection
												name="grupoForm"
												property="centrosEducativos"
												value="idCentroEducativo"
												label="nombre" /> 
						 </html:select> 
			      	</td>
			      	<td>&nbsp;</td>
			  </tr>
			  <tr> 
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			  </tr>
			  <tr> 
			    	<td> <bean:message key="AltaGrupo.curso" /> </td>
			    	<td colspan="2"> 
			    		<html:select property="idCurso"> 
				    		<html:option value=""></html:option> 
				      	 	<html:optionsCollection
												name="grupoForm"
												property="cursos"
												value="idCurso"
												label="nombre" /> 
						 </html:select> 
			      	</td>
			      	<td>&nbsp;</td>
			  </tr>
			  <tr> 
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			  </tr>	
			  <tr> 
			    	<td> <bean:message key="AltaGrupo.docente" /> </td>
			    	<td colspan="2"> 
			    		<html:select property="idDocente"> 
				    		<html:option value=""></html:option> 
				      	 	<html:optionsCollection
												name="grupoForm"
												property="docentes"
												value="idPersona"
												label="apellidoNombreDocente" /> 
						 </html:select> 
			      	</td>
			      	<td>&nbsp;</td>
			  </tr>
			  <tr> 
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			  </tr>	
			  <tr> 
			    	<td> <bean:message key="AltaGrupo.colaborador" /> </td>
			    	<td colspan="2"> 
			    		<html:select property="idColaborador"> 
				    		<html:option value=""></html:option> 
				      	 	<html:optionsCollection
												name="grupoForm"
												property="colaboradores"
												value="idPersona"
												label="apellidoNombreColaborador" /> 
						 </html:select> 
			      	</td>
			      	<td>&nbsp;</td>
			  </tr>
			  <tr> 
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			  </tr>				  
			</table>
							
			<table width="75%" border="0">
			  <tr> 
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			  </tr>
			  <tr> 
			    <td> <html:submit><bean:message key="Botones.grupos.crear" /></html:submit></td>
			    <td> <html:cancel><bean:message key="Botones.cancelar" /></html:cancel></td>
			    <td> <html:reset><bean:message key="Botones.reset" /></html:reset></td>
			  </tr>			  
			</table>				
			<%-- set the parameter for the dispatch action --%>
			<html:hidden property="action" value="altaGrupo" />
		</html:form> 
	</body>
</html:html>